{extend name=".././view/createhref.html" /}

{block name="form"}
    <form action="{$list.set.url}" method="{$list.set.formpost}" class="layui-form layui-form-pane" lay-filter="myform">

          <div class="layui-form-item">
            <label for="school_id" class="layui-form-label"><span class="x-red">*</span>学校</label>
            <div class="layui-input-block">
              <select name="school_id" id="school_id" lay-verify="required">
                <option value=""></option>
                {foreach $list.set.school_id as $key=>$vo}
                  <option value="{$vo.id}">{$vo.title}</option>
                {/foreach}
              </select>
            </div>
          </div>
          <div class="layui-form-item">
            <label for="nianji" class="layui-form-label">
              <span class="x-red">*</span>年级
            </label>
            <div class="layui-input-block">
              <select name="ruxuenian" id="nianji" lay-verify="required" class="layui-form-label">
                <option value="">请选择要下载的年级</option>
              {foreach $list.set.nianji as $key=>$vo}
                <option value="{$vo.ruxuenian}">{$vo.nianjiname}</option>
              {/foreach}
              </select>
            </div>
          </div>
          <input type="hidden" id="kaoshi" name="kaoshi_id" value="{$list.set.kaoshi_id}">
          <div class="layui-form-item" style="text-align: right;">
              <button  class="layui-btn" lay-filter="" lay-submit="">
                  {$list.set.butname}
              </button>
          </div>
      </form>
{/block}

{block name="myjs"}
<script>
layui.use(['form'], function(){
	var form = layui.form;
});
</script>
{/block}

